/*
 * @Description: 分包商月度考核数据模型
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2023-03-07 10:44:23
 * @LastEditTime: 2023-03-07 16:36:31
 * @FilePath: \cscec-pms-admin\src\views\subcontractors\month\model.js
 */
// 表单项
const formOption = [
  {
    label: '项目名称',
    keyName: 'projectName',
    type: 'BaseInput',
    disabled: true
  },
  {
    label: '考核月度',
    keyName: 'assessmentTimeName',
    type: 'BaseInput',
    disabled: true
  }
]
// 表头
const columns = [
  {
    title: '序号',
    width: 80,
    align: 'center',
    customRender: (text, record, index) => {
      return index + 1
    }
  },
  {
    title: '考核分包商名称',
    dataIndex: 'subcontractorName'
  },
  {
    title: '分包商类型',
    width: 300,
    dataIndex: 'type'
  },
  {
    title: '考核分数',
    width: 100,
    align: 'center',
    dataIndex: 'assessmentScore'
  },
  {
    title: '考核等级',
    width: 100,
    align: 'center',
    dataIndex: 'assessmentLevel'
  },
  {
    title: '修订后分数',
    width: 120,
    align: 'center',
    dataIndex: 'revisedScore'
  },
  {
    title: '修订后等级',
    width: 120,
    align: 'center',
    dataIndex: 'revisedLevel'
  },
  {
    title: '操作',
    dataIndex: 'operation',
    width: 170,
    align: 'center',
    scopedSlots: { customRender: 'operation' }
  }
]

export {
  formOption,
  columns
}